//
//  AboutlinnerViewController.m
//  LINNER
//
//  Created by wei wang on 2017/5/3.
//  Copyright © 2017年 weiwang. All rights reserved.
//

#import "AboutlinnerViewController.h"
#import "UserCell.h"

@interface AboutlinnerViewController ()<UITableViewDelegate,UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UITableView *tableView;

@end
static NSString *cellindefine = @"cell";

@implementation AboutlinnerViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.tableView.tableFooterView = [[UITableView alloc] init];
    
    self.tableView.backgroundColor = [UIColor clearColor];
    [self.tableView registerNib:[UINib nibWithNibName:@"UserCell" bundle:nil] forCellReuseIdentifier:cellindefine];
    
    self.tableView.separatorStyle = NO;
    
    [self setNavigationBarTitle:MyNSLocalizedString(@"使用说明")];
    
    [self setLeftButtonImage:[UIImage imageNamed:@"tittle_back_nor"]];
    [self.navigationController.navigationBar makeTransparent_nornav];

}
#pragma mark - tableView Datasource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
    
    return 1;
    
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    
    return 1;
    
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    
//    return 904;
    return px1920Height(3848);
}

#pragma mark - tableView Delegate
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    UserCell *cell = [tableView dequeueReusableCellWithIdentifier:cellindefine];
#pragma mark -   lable.tag = 10 UIimage.tag = 11;
    
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    
//    NSUserDefaults* defaultL = [NSUserDefaults standardUserDefaults];
//    NSArray* languages = [defaultL objectForKey:@"AppleLanguages"];
//    NSString* preferredLang = [languages objectAtIndex:0];
//    NSLog(@"Preferred Language:%@", preferredLang);
//    if ([preferredLang isEqualToString:@"zh-Hans-CN"]) {
//        
//        cell.bgimage.image = [UIImage imageNamed:@"linner"];
//        
//    }else{
//        
//        cell.bgimage.image = [UIImage imageNamed:@"linner_en"];
//        
//    }
    cell.bgimage.image = [UIImage imageNamed:MyNSLocalizedString(@"instructions_zh")];
    return cell;
    
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
